Before the Romans, history wasn’t really written as a factual statement, the Greeks started with that style of history writing.
Ancient history was primarily oral and thus the underlying message was more important than the details. Hence you get epics and mythology, but most of the details are lost to history. What historians do is find the items in the stories that overlap, extract those and then compare with other records which were accurate (such as records on trades, census information etc) to get a roughly factual statement.
The problem is the Bible, until the New Testament has no archaeological evidence, the Jewish religion and Jews as an identity only proliferated about 1000 years before the Christians, so anything older is taken from prior tribes and civilizations and other religions (King David and the 12 tribes) and worked into a new jacket of a unifying monotheism. There is a line of truth in it (eg there were probably more than 12 tribes in the area and the “10 tribes” were unified from a selection of those but it is not factual history which you can take at face value, modern day you would call it alternative history or “based on a true story”.